]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Remove C-based TelepathyLogger wrapper
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 25 May 2012 18:55:20 +0000 (14:55 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 1 Jun 2012 12:59:59 +0000 (08:59 -0400)
gjs has matured enough to the point where we don't need this

https://bugzilla.gnome.org/show_bug.cgi?id=676850

js/ui/telepathyClient.js
src/shell-tp-client.c
src/shell-tp-client.h

index f54e4c0001e5690069c168151204d35ba96b3e84..91568495a7e46d7654736f7f17f7bd9cca5a5395 100644 (file)
@@ -509,10 +509,10 @@ const ChatSource = new Lang.Class({
     _getLogMessages: function() {
         let logManager = Tpl.LogManager.dup_singleton();
         let entity = Tpl.Entity.new_from_tp_contact(this._contact, Tpl.EntityType.CONTACT);
-        Shell.get_contact_events(logManager,
-                                 this._account, entity,
-                                 SCROLLBACK_HISTORY_LINES,
-                                 Lang.bind(this, this._displayPendingMessages));
+
+        logManager.get_filtered_events_async(this._account, entity,
+                                             Tpl.EventTypeMask.TEXT, SCROLLBACK_HISTORY_LINES,
+                                             null, Lang.bind(this, this._displayPendingMessages));
     },
 
     _displayPendingMessages: function(logManager, result) {
index d64129e6504d8920f84bd7a8ee63975a6ccc4ec0..69da10fd292c78c580c37bca483900878168968e 100644 (file)
@@ -330,34 +330,6 @@ shell_tp_client_grab_contact_list_changed (ShellTpClient *self,
 
 /* Telepathy utility functions */
 
-
-/**
- * shell_get_contact_events:
- * @log_manager: A #TplLogManager
- * @account: A #TpAccount
- * @entity: A #TplEntity
- * @num_events: The number of events to retrieve
- * @callback: (scope async): User callback to run when the contact is ready
- *
- * Wrap tpl_log_manager_get_filtered_events_async because gjs cannot support
- * multiple callbacks in the same function call.
- */
-void
-shell_get_contact_events (TplLogManager *log_manager,
-                          TpAccount *account,
-                          TplEntity *entity,
-                          guint num_events,
-                          GAsyncReadyCallback callback)
-{
-  tpl_log_manager_get_filtered_events_async (log_manager,
-                                             account,
-                                             entity,
-                                             TPL_EVENT_MASK_TEXT,
-                                             num_events,
-                                             NULL, NULL,
-                                             callback, NULL);
-}
-
 /* gjs doesn't allow us to craft a GError so we need a C wrapper */
 void
 shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
index 82094a073192f5462ad553e970b3d19a9b6e1882..7406b701687cb9691235d48557ae3a5ef68415be 100644 (file)
@@ -7,7 +7,6 @@
 #include <glib-object.h>
 
 #include <telepathy-glib/telepathy-glib.h>
-#include <telepathy-logger/telepathy-logger.h>
 
 G_BEGIN_DECLS
 
@@ -103,12 +102,6 @@ void shell_tp_client_grab_contact_list_changed (ShellTpClient *self,
 
 /* Telepathy utility functions */
 
-void shell_get_contact_events (TplLogManager *log_manager,
-                               TpAccount *account,
-                               TplEntity *entity,
-                               guint num_events,
-                               GAsyncReadyCallback callback);
-
 void shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
                                 const gchar *message);